﻿<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <link rel="shortcut icon" href="__ADMIN__images/favicon.ico">
  <title>云栈互联内容管理系统</title>
  <link rel="stylesheet" href="__ADMIN__css/style.css" media="all">
</head>
<body>
<div class="login-layout">
  <div class="main">
    <div class="login_form col-left">
      <h2>管理员登录</h2>
      <form action="" method="post" id="loginform" name="loginform">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <td>
            <div class="input_box">
              <img src="__ADMIN__images/luser_icon.png" alt="">
              <input type="text" value="" placeholder="请输入管理员账号" id="username" name="username">
            </div></td>
          </tr>
          <tr>
            <td>
            <div class="input_box">
              <img src="__ADMIN__images/lpass_icon.png" alt="">
              <input type="password" value="" placeholder="请输入密码" id="password" name="password">
            </div></td>
          </tr>
          <tr>
            <td>
            <div class="input_box col-left" style="width:150px;">
              <input type="text" value="" placeholder="验证码" id="txt_code" name="verify">
            </div>
            <div class="verify fl">
              <img id="verify" src="{:U('Public/verify')}" height="40" class="img" />
              <span id="ck_verify">换一个</span></div>
            </td>
          </tr>
          <tr>
            <td><input type="submit" id="login_submit" class="login_btn" value="登录" placeholder=""></td>
          </tr>
        </tbody>
        </table>
      </form>
    </div>
    <div class="login_other col-right"><br/><br/><br/>
    <a href="http://www.bjyzhl.com/" target="_blank"><img src="__ADMIN__images/yz_logo.png" alt="" width="100"></a><br/><br/>
    <a href="http://www.bjyzhl.com/" target="_blank"><img src="__ADMIN__images/yz_logo2.png" alt="" width="150"></a><br/><br/>客服热线：010-57016405
    </div>
    <div class="clear"></div>
      <div class="copyright">&copy; 2015-2019 YunZhanNet,Inc.All rights reserved.</div>
  </div>
</div>
<script src="__ADMIN__js/jquery-1.9.1.min.js" charset="utf-8"></script>
<script src="__ADMIN__layui/layui.js" charset="utf-8"></script>

<script type="text/javascript">
layui.use('layer', function(){ //独立版的layer无需执行这一句
  var $ = layui.jquery, layer = layui.layer; //独立版的layer无需执行这一句
  $("#login_submit").click(function(){
     var username=$.trim($('#username').val());
     var password=$.trim($('#password').val());
     var txt_code=$.trim($('#txt_code').val());
     if (username==""){
      layer.msg('请输入管理员账号!');
      $('#username').focus();
      return false;
     }
     if (password==""){
      layer.msg('请输入密码!');
      $('#password').focus();
      return false;
     }
     if (txt_code==""){
      layer.msg('请输入验证码!');
      $('#txt_code').focus();
      return false;
     }
     return true;
  });

});
$(function(){
  $("#ck_verify").click(function(){
      $("#verify").attr("src", "/index.php?m=Yzadmin&c=Public&a=verify&cache=" + Math.random());
  });
})
</script>
</body>
</html>
